package com.xyh.po;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @Author:kyle
 * @Date:2020/12/10 - 16:32
 * @Project:spring_demo1
 * @Package:com.xyh.po
 * @Version:1.0
 */
@Data
@Component("user")
public class User {
    @Value("1")
    private Integer id;
    @Value("熊大")
    private String username;
    @Value("123456")
    private String password;
    @Value("2020-10-10")
    private Date birthday;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", birthday=" + birthday +
                '}';
    }
}
